from nodetypes.formats.mml.Events import CancelEventHandler as EventHandler

class EventHandler(EventHandler):
    
    def process(self, context, source):        
        if 'permission' in context.request.args:            
            context.response_uri = '%s?no-referrer=1' % context.defaults.public_root_path or '/'
        else:
            return super(EventHandler,self).process(context, source)
        return '', 'text/plain'
    